package com.zhai.cloud.home.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author Created by 翟凤玺
 * @package com.zhai.cloud.home.domain
 * @project-name zhai-cloud
 * @description 定时任务 入参
 * @create-datetime 2019-9-11 11:48
 */
@Data
public class JobIn {

    @NotBlank(message = "任务编号不能为空")
    @ApiModelProperty(value = "任务编号")
    private String jobCode;

    @ApiModelProperty(value = "表达式")
    private String cron;

    @NotBlank(message = "任务状态不能为空")
    @ApiModelProperty(value = "任务状态")
    private String state;

}